package com.migration.model.newdb;

import jakarta.persistence.*;
import lombok.Data;
import java.io.Serializable;

/**
 * 角色菜单表 实体类
 * 表名：sys_role_menu
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "sys_role_menu")
public class SysRoleMenu implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 主键，自增长
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false)
    private Long id;
    
    /**
     * 角色ID
     */
    @Column(name = "role_id", nullable = false)
    private Long roleId;
    
    /**
     * 菜单ID
     */
    @Column(name = "menu_id", nullable = false)
    private Long menuId;
    
    @Override
    public String toString() {
        return "SysRoleMenu{" +
            "id=" + id +
            ", roleId=" + roleId +
            ", menuId=" + menuId +
        '}';
    }
} 